package Framework.Util
{
	
	public class Exception extends Error
	{
		private var _code:int;
		private var _method:String;
		public static const ExceptionCodeSystemBase:int = 10000;
		public static const ExceptionCodeRMIBase:int = 20000;
		public static const ExceptionCodeUserBase:int = 30000;
		public static const ExceptionCodeUnkown:int = 10000;
		public static const ExceptionOutOffMemery:int = 10001;
		public static const ExceptionCodeBase:int = 10002;
		public static const ExceptionCodeStd:int = 10003;
		public static const ExceptionCodeDateTime:int = 10004;
		public static const ExceptionCodeFunction:int = 10005;
		public static const ExceptionCodeNullHandle:int = 10006;
		public static const ExceptionCodeDB:int = 10007;
		public static const ExceptionCodeSerialize:int = 10008;
		public static const ExceptionCodeLang:int = 10009;
		public static const ExceptionCodeXml:int = 10010;
		
		public function Exception(message:String = "Exception", code:int = 10002)
		{
			this.message = message;
			this.code = code;
		}
		
		public function get code() : int
		{
			return this._code;
		}
		
		public function set code(value:int) : void
		{
			this._code = value;
		}
		
		public function get method() : String
		{
			return this._method;
		}
		
		public function set method(value:String) : void
		{
			this._method = value;
		}
	}
}
